from django.db import models


# Create your models here.

# class job(models.Model):
#     job_name = models.CharField('岗位名称', max_length=20, null=True)
#     work_demand = models.CharField('能力要求', max_length=80, null=True)
#     company_locale = models.CharField('地点', max_length=20, null=True)
#     company_name = models.CharField('公司名', max_length=100, null=True)
#     guimo = models.CharField('公司规模', max_length=20, null=True)
#     job_salary = models.CharField('公司薪资', max_length=20, null=True)
#     job_salary_fif = models.BooleanField('薪资是否不超过15K', choices=((True, '是'), (False, '否')), null=True)
#     demand = models.CharField('demand', max_length=20, null=True)
#
#     def __unicode__(self):
#         return self.job_name
#
#     class Meta:
#         verbose_name_plural = '招聘岗位信息表'


class stu(models.Model):
    name = models.CharField(max_length=32, verbose_name='姓名')
    stuid = models.CharField(max_length=32, verbose_name='学号')
    academy = models.CharField(max_length=32, verbose_name='学院')
    stuclass = models.CharField(max_length=32, verbose_name='班级')
    age = models.IntegerField(verbose_name='年龄')
    gender = models.IntegerField(verbose_name='性别')
    password = models.CharField(max_length=64, verbose_name='密码')

    class Meta:
        db_table = 'stu'
        verbose_name = '学生'
        verbose_name_plural = verbose_name


class comp(models.Model):
    name = models.CharField(max_length=20, verbose_name='公司名')
    type = models.CharField(max_length=20, verbose_name='类型')

    def __unicode__(self):
        return self.name

    class Meta:
        verbose_name_plural = '公司信息表'


class test(models.Model):
    uname = models.CharField(max_length=32)
    upwd = models.CharField(max_length=64)

